package eerbaar.v2.gamebuilder.client;

import eerbaar.v2.app.core.IApp;
import eerbaar.v2.app.extension.IExtension;
import eerbaar.v2.app.menu.IMenuProvider;
import eerbaar.v2.gamebuilder.client.internal.ResetGameMenu;

public class GameBuilderExtension implements IExtension {

    @Override
    public void install(IApp app) {

        app.getForges().setGameForge(new ServerGameForge());
        app.getForges().setLevelForge(new ServerLevelForge());

        app.addTask(new CheckRequesterTask());

        IMenuProvider provider = app.getMenuService().get("main");
        provider.addMenuItem(new ResetGameMenu());
    }

}
